﻿@model IEnumerable<BlazorShop.Models.LineItem>

<table>
    <tr>
        <td>商品名称：</td>
        <td>单价：</td>
        <td>数量：</td>
        <td>小计：</td>
       
        

    </tr>
    @{
        decimal temp = 0.0M;
        temp = temp * 10;
    }
    @foreach(var i in Model)
        {
            <tr>
                <td>@i.Product.ProductName</td>
            <td>&yen;@i.Product.Price</td>
            <td>@i.Quantity</td>
            <td>&yen;@(i.Product.Price * i.Quantity)</td>
            @{
                temp += Convert.ToDecimal(i.Product.Price * i.Quantity);
            }
            </tr>
        }
        <tr>
            <td>总计：</td>
            <td>
                &yen;@temp
            </td>
        </tr>
</table>

